package com.cgt.xiaotao.gateway.config;

import com.cgt.xiaotao.gateway.util.JwtSignerHolder;
import org.springframework.cloud.client.discovery.DiscoveryClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class JwtConfig {

    @Bean
    public JwtSignerHolder jwtSignerHolder(DiscoveryClient discoveryClient) {
        return new JwtSignerHolder(discoveryClient);
    }
}
